package com.medicine.hbp.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;


public class FragmentAdapter extends FragmentStatePagerAdapter {
    private List<Fragment> listf;
    public FragmentAdapter(FragmentManager msg, List<Fragment> listf) {
        super(msg);
        this.listf=listf;
    }

    @Override
    public Fragment getItem(int position) {
        return listf.get(position);
    }

    @Override
    public int getCount() {
        return listf.size();
    }

}
